package cn.uniquesoft.service.impl;

import cn.uniquesoft.mapper.VideosMapper;
import cn.uniquesoft.service.IVideosService;
import cn.uniquesoft.service.base.BaseServiceImpl;
import cn.uniquesoft.vo.VideosVO;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VideosServiceImpl extends BaseServiceImpl<VideosVO> implements IVideosService {
	private VideosMapper videosMapper;
	public VideosServiceImpl(VideosMapper videosMapper){
		super();
		this.baseMapper=videosMapper;
		this.videosMapper=videosMapper;
	}

	@Override
	public List<VideosVO> getItemsDown(VideosVO item) {
		return this.videosMapper.getItemsDown(item);
	}

	@Override
	public List<VideosVO> getItemsUp(VideosVO item) {
		return this.videosMapper.getItemsUp(item);
	}

	@Override
	public List<VideosVO> getItemsFirst(int pageSize) {
		return this.videosMapper.getItemsFirst(pageSize);
	}

	@Override
	public int shnehe(VideosVO item) {
		return this.videosMapper.shnehe(item);
	}
}
